<template>
    <a-config-provider :locale="locale">
        <div id="app">
            <router-view />
        </div>
    </a-config-provider>
</template>

<script lang="ts" setup>
import zhCN from 'ant-design-vue/es/locale/zh_CN';
import dayjs from 'dayjs';
import 'dayjs/locale/zh-cn';
import { useRoute } from 'vue-router';
import { useLoadingStore } from '@/store';

import * as echarts from 'echarts';
import { provide } from 'vue';

dayjs.locale('zh-cn');
const locale = zhCN;

provide('echarts', echarts);

const route = useRoute();
const loadingStore = useLoadingStore();
</script>

<style lang="less">
#app {
    width: 100%;
    height: 100%;
}
</style>
